<!DOCTYPE html>
<html>
<head>
    <title>佳怡供应链理财</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

    <meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
">
    <link rel="stylesheet" href="lib/weui.min.css">
    <link rel="stylesheet" href="css/jquery-weui.css">
    <link rel="stylesheet" href="demos/css/demos.css">
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="font/fontscss/iconfont.css">
    <script src="lib/jquery-2.1.4.js"></script>

    <style type="text/css">
        body, html {
            background: #fff;
        }

        /*  .weui-cells {
              margin-top: 2.5rem;
          }*/

        .weui-cell {
            padding: 10px 15px;
        }

        .weui-btn_primary {
            background: #EC991C;
        }

        .weui-btn_primary:not(.weui-btn_disabled):active {
            background: #ec8c22;
        }

        /*.weui-btn_primary:active{
            background: #ec8c22;
        }*/
        .header{
            height: 8rem;
            background: url(demos/images/login-logo@2x.png) no-repeat;
            background-size: 19rem;
        }
    </style>
</head>
<body>
<div class="header">

</div>
<div class="weui-cells weui-cells_form">
    <form method="post" data-url="/login" id="formlogin">
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">邮箱</label></div>
            <div class="weui-cell__bd">
                <input class="weui-input field-text" type="text" name="mail" id="mail" placeholder="请输入账号"
                       data-required="true" data-descriptions="username"/>
            </div>
        </div>

        <div class="weui-btn-area">
            <a class="weui-btn weui-btn_primary" id="conf">验证</a>
        </div>

    </form>

</div>
<div class="weui-tabbar">
    <!-- <a href="touzi.html" class="weui-tabbar__item">
         <div class="weui-tabbar__icon">
             <i class="iconfont icon-wodedingdan"></i>
         </div>
         <p class="weui-tabbar__label">投资</p>
     </a>
     <a href="touzi.html" class="weui-tabbar__item">
         <div class="weui-tabbar__icon">
             <i class="iconfont icon-edit"></i>
         </div>
         <p class="weui-tabbar__label">申请</p>
     </a>
     <a href="user.html" class="weui-tabbar__item">
         <div class="weui-tabbar__icon">
             <i class="iconfont icon-account"></i>
         </div>
         <p class="weui-tabbar__label">我的</p>
     </a>-->
</div>
<script src="lib/fastclick.js"></script>
<script>
    $(function () {
        FastClick.attach(document.body);
    });
</script>
<script src="js/jquery-weui.js"></script>
<script type="application/javascript">
    $("#conf").click(function () {
        $.ajax({
            type: "POST",
            url: "login/sendmail",
            async: false,
            data: $('#formlogin').serialize(),
            success: function (msg) {
                if (msg != null && msg != "") {
                    $.toast("邮件发送成功");
                    setTimeout(function () {
                        window.location.href = "touzi.html";
                    }, 1000)
                }
            }, error: function (XMLHttpRequest, textStatus, errorThrown) {
                $.toast("登录失败，请检查网络", "forbidden");
            }
        });
    });

</script>
<script src="js/web/checkLogin.js"></script>
</body>

</html>